#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QMediaPlayer>
#include <QVideoWidget>
#include <QSlider>
#include <QMouseEvent>
#include <QFileDialog>
#include <QAudioOutput>
#include <QListWidget>
#include <QMessageBox>


QT_BEGIN_NAMESPACE
namespace Ui {
class Widget;
}
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();
    void MediaInit();
    void videoListInit(void);

private slots:
    void on_startButton_clicked();

    void on_stopButton_clicked();

    void on_playerPosSlider_sliderMoved(int position);

    void on_volumeSlider_sliderMoved(int position);

    void on_pushButton_clicked();

    void on_videoList_itemClicked(QListWidgetItem *item);

private:
    Ui::Widget *ui;
    QMediaPlayer *mPlayer;
    QAudioOutput *mAudio;
    QVideoWidget *mvideoWidget;
    QListWidget  *mdataList;
    QMenu        *mMenu;

};
#endif // WIDGET_H
